﻿
namespace scripts.logic
{
	//数据库数据
	public class PlayerData
	{
		//游戏货币
		public float coin = 0;
		//游戏点券（只用来尝试充值操作）
		public float point = 0;

		public int win = 0;
		public int lost = 0;
		public int kill = 0;
		public int death = 0;

		public float kd = 0.0f;

		public static float GetKD(PlayerData playerData)
		{
			return (playerData.death == 0) ? (float)playerData.kill : playerData.kill / ((float)playerData.death);
		}
	}
}
